﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="CategorySummary.aspx.cs" Inherits="Frogism.Web.Views.Money.CategorySummary" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<asp:ListView ID="MonthProgressList" runat="server" >
		<LayoutTemplate>
			<table class="CategoryTable" cellspacing="0" cellpadding="1">
				<tr>
					<th>Category</th>
					<th>Month</th>
					<th>Budget</th>
					<th>Diff</th>
					<th>Last Month</th>
					<th>Diff</th>
					<th>Month Avg</th>
					<th>Diff</th>
					<th>Year</th>
				</tr>
				<asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
				</table>
		</LayoutTemplate>
		<AlternatingItemTemplate>
		<tr>
			    <td><%# Html.ActionLink( Eval("Name").ToString(), "Category", new { id = Eval("Name")})%></td>
			<td class="NumberCell"><%# Eval("Month")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("Budget")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("Remaining")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("LastMonth")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("LastMonthDiff")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("MonthAvg")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("MonthAvgDiff")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("Year")%>&nbsp;</td>
			
        </tr>

		</AlternatingItemTemplate>
		<ItemTemplate>
		<tr class="AltColumn">
		       <td><%# Html.ActionLink( Eval("Name").ToString(), "Category", new { id = Eval("Name")})%></td>
			<td class="NumberCell"><%# Eval("Month")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("Budget")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("Remaining")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("LastMonth")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("LastMonthDiff")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("MonthAvg")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("MonthAvgDiff")%>&nbsp;</td>
			<td class="NumberCell"><%# Eval("Year")%>&nbsp;</td>
        </tr>
			
		</ItemTemplate>
		<EmptyDataTemplate>
			Category Summary is not available.
		</EmptyDataTemplate>
	</asp:ListView>
	<%=Html.ActionLink("Update missing Categories", "NoCategories")%>
</asp:Content>
